#! /bin/sh

name=gdbm
version=1.25
revision=1
tarball_url="https://ftp.gnu.org/gnu/gdbm/gdbm-${version}.tar.gz"
tarball_blake2b="6abf5f77823dda7ebcaa775d58f7a311c8f73c7521fe223398b5cb4b4831ad177cfd87fd42f2b24ca2fc5984af7d51abcc5e509ceb6aab2746a52aecb550654b"
hostdeps="gcc pkg-config"
deps="core-libs readline"

prepare() {
    autotools_recursive_regen
}

configure() {
    autotools_configure \
        --enable-libgdbm-compat
}

build() {
    make -j${parallelism}
}

package() {
    DESTDIR="${dest_dir}" make install

    post_package_strip
}
